package com.twu.biblioteca;

import com.twu.biblioteca.LibraryContents.Book;
import com.twu.biblioteca.LibraryContents.Movie;
import com.twu.biblioteca.LibraryContents.Repository;
import com.twu.biblioteca.Users.LoginManager;
import com.twu.biblioteca.Users.User;

public class BibliotecaApp {

    public static void main(String[] args) {

        Repository bookCatalogue = Repository.getInstance();
        bookCatalogue.addBook(new Book("The light fantastic", "Terry Pratchett", 1986, "TP1"));
        bookCatalogue.addBook(new Book("The hitchikers guide to the galaxy", "Douglas Adams", 1979, "DA1"));
        bookCatalogue.addMovie(new Movie("Real Genius", "Martha Coolidge", 1985, 5, "RG1"));
        bookCatalogue.addMovie(new Movie("Wargames", "John Badham", 1983, 0, "W1"));

        LoginManager.getInstance().addUser(new User("Jenny", "mail@example.com", "8675309", "111-1111", "password"));

        System.out.println("Welcome to the library!");
        Menu.getInstance().menuLoop();
    }
}
